package fun.tan90.easy.binlog.base.threadpool;


import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

/**
 * description TODO
 * company 铁人科技
 *
 * @author 陈浩杰
 * @date 2023/7/13 10:07
 */
public class EasyBinlogThreadPool {

    public static final ExecutorService EB_FIXED_EXECUTOR = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors(), new EasyBinlogThreadFactory("eb"));

    public static final ScheduledExecutorService EB_SCHEDULED_EXECUTOR = Executors.newScheduledThreadPool(Runtime.getRuntime().availableProcessors() * 2, new EasyBinlogThreadFactory("eb-sync-pos"));
}
